package lab02.Test09;

/**
 * Created by lenovo on 2017/10/19.
 */
public class Student {
    String studentnum;
    String classnum;
    String name;
    String sex;
    int age;

    public Student() {
    }

    Student(String studentnum, String classnum, String name, String sex, int age) {
        this.classnum = classnum;
        this.studentnum = studentnum;
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public String getStudentnum() {
        return studentnum;
    }

    public String getName() {
        return name;
    }

    public String getClassnum() {
        return classnum;
    }

    public String getSex() {
        return sex;
    }

    public int getAge() {
        return age;
    }

    public String toString() {
        return studentnum + "\t" + classnum + "\t" + name + "\t" + sex + "\t" + age;
    }
}
